package cn.jussi.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.jussi.model.UploadFile;

public interface UploadFileService {
	//新增
	public void addFileInfo(UploadFile uploadFile);
	
	public UploadFile getUploadFilesById(int id);
	
	//获取所有上传到服务器上的文件的信息列表
	public List<UploadFile> getUploadFilesInfo();
	
	//删除
	public void deleteUploadFileInfo(int id);
	
	//保存文件的方法
	public void saveFile(HttpServletRequest request, HttpServletResponse response);
	
	//删除文件的方法
	public void deleteFile(String savePath);

}
